home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / cvs-1.8 / cvs-1 / cvs-1.8.1 / windows-NT / waitpid.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-06  |  608 b   |  23 lines

  1. /* waitpid.c --- waiting for process termination, under Windows NT
  2.    Jim Blandy <jimb@cyclic.com> --- August 1995  */
  3.  
  4. #include <assert.h>
  5. #include <stdio.h>
  6. #include <process.h>
  7. #include <errno.h>
  8.  
  9. #include "config.h"
  10.  
  11. /* Wait for the process PID to exit.  Put the return status in *statusp.
  12.    OPTIONS is not supported yet under Windows NT.  We hope it's always zero.  */
  13. pid_t waitpid (pid, statusp, options)
  14.      pid_t pid;
  15.      int *statusp;
  16.      int options;
  17. {
  18.     /* We don't know how to deal with any options yet.  */
  19.     assert (options == 0);
  20.     
  21.     return _cwait (statusp, pid, _WAIT_CHILD);
  22. }
  23.